package com.nami.ucenter.controller.convertor;

import com.nami.gate.external.basic.request.upmsg.LogoutRequest;
import com.nami.gate.external.basic.request.upmsg.client.login.UpMsgLogoutReq;
import com.nami.ucenter.facade.logout.request.command.UserLogoutCmd;

public class WrapToLogoutCmdAssembler {

    public static UserLogoutCmd logoutWrap2UserLogoutCmd(LogoutRequest wrap, UpMsgLogoutReq request) {
        UserLogoutCmd command = new UserLogoutCmd();
        command.setAppKey(request.getAppKey());
        command.setUserId(request.getUserId());
        command.setClientIp(wrap.getClientIp());
        command.setPlatform(request.getPlatform());
        command.setCurrTime(request.getCurrTime());
        command.setMqTags(wrap.getMqTags());
        return command;
    }

}
